﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace _1141092_1141105_ToiecTest
{
    public partial class ListenningPage : PhoneApplicationPage
    {
        public ListenningPage()
        {
            InitializeComponent();
        }

        private void HandleCheck(object sender, RoutedEventArgs e)
        {

        }
        bool flag = true;
        private void ButtomPlay_Click(object sender, RoutedEventArgs e)
        {            
            mediaQuestion.Source = new Uri("/Media/mong.mp4", UriKind.Relative);
            if (flag)
            {
                flag = false;
                mediaQuestion.Play();
            }
            else
            {
                mediaQuestion.Pause();
                flag = true;
            }
        }

    }
}